package cn.com.shadowless.xinning.adapter;

import java.util.List;

import cn.com.shadowless.xinning.utils.Item;
import top.defaults.view.PickerView;

/**
 * The type Car select adapter.
 *
 * @author sHadowLess
 */
public class CarSelectAdapter extends PickerView.Adapter<Item> {

    private List<Item> list;

    public CarSelectAdapter(List<Item> list) {
        this.list = list;
    }

    @Override
    public int getItemCount() {
        return list.size();
    }

    @Override
    public Item getItem(int index) {
        return list.get(index);
    }

}
